package com.exam.service.serviceImpl;

import com.exam.entity.ErrorQuestion;
import com.exam.mapper.ErrorQuestionMapper;
import com.exam.service.ErrorQuestionService;

import java.util.List;

public class ErrorQuestionServiceImpl implements ErrorQuestionService {
    private ErrorQuestionMapper errorQuestionMapper;

    public void setErrorQuestionMapper(ErrorQuestionMapper errorQuestionMapper) {
        this.errorQuestionMapper = errorQuestionMapper;
    }

    @Override
    public int add_error_question(ErrorQuestion errorQuestion) {
        return errorQuestionMapper.add_error_question(errorQuestion);
    }

    @Override
    public int get_error_question(ErrorQuestion errorQuestion) {
        return errorQuestionMapper.get_error_question(errorQuestion);
    }

    @Override
    public List<ErrorQuestion> get_error_question_by_u_id(int u_id) {
        return errorQuestionMapper.get_error_question_by_u_id(u_id);
    }

    @Override
    public int del_error_question_by_eq_id(int eq_id) {
        return errorQuestionMapper.del_error_question_by_eq_id(eq_id);
    }
}
